package com.punai.customer.mapper;

import com.punai.common.core.mapper.CommonMapper;
import com.punai.customer.domain.CusLinkFbFeature;
import com.punai.customer.domain.bo.CusFeatureBo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 分包费用项特征关联Mapper接口
 *
 * @author zxw
 * @date 2022-12-09
 */
public interface CusLinkFbFeatureMapper extends CommonMapper<CusLinkFbFeature>
{
    /**
     * 查询分包费用项特征关联
     *
     * @param id 分包费用项特征关联主键
     * @return 分包费用项特征关联
     */
    public CusLinkFbFeature selectDmcLinkFbFeatureById(String id);

    /**
     * 查询分包费用项特征关联列表
     *
     * @param dmcLinkFbFeature 分包费用项特征关联
     * @return 分包费用项特征关联集合
     */
    public List<CusLinkFbFeature> selectDmcLinkFbFeatureList(CusLinkFbFeature dmcLinkFbFeature);


    /**
     * 删除分包费用项特征关联
     *
     * @param id 分包费用项特征关联主键
     * @return 结果
     */
    public int deleteDmcLinkFbFeatureById(String id);

    /**
     * 批量删除分包费用项特征关联
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDmcLinkFbFeatureByIds(String[] ids);

    List<CusFeatureBo> selectLinkDataAndEntity(@Param("companyId") Long companyId, @Param("gxIds") String[] feeArrIds);

    List<CusFeatureBo> selectLinkFeature(@Param("companyId")Long companyId, @Param("gxIds") List<String> gxIdList,@Param("type")String type);

    List<CusFeatureBo> selectLinkFeatureSta(@Param("companyId")Long companyId,@Param("versionId") String versionId, @Param("gxIds") List<String> gxIdList,@Param("type")String type);
}
